angular.module('starter.controllers')
.controller('RegisterCtrl', function($scope, museumFac, $stateParams) {
  $scope.user = {};
  $scope.getToken = function() {
    museumFac.user.sendtoken({
      phone: $scope.user.phone
    },function(data){
      $scope.token = data.info;
    },function(data){
      alert(data.data.info);
    });
  };

  

})